﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BaseSet.Data;
using BaseSet.Logic;
using BaseSet.Entity;
using BaseSet.Framework;
using BaseSet.Entity.Common;
using BaseSet.Entity.Common.Text;
using BaseSet;
using System.Data;


namespace WebSite.UserSetting
{
    public partial class SendMessage : System.Web.UI.Page
    {
        private string touserid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            touserid = Request.QueryString["touserid"] + "";
            //touserid = "2";
            if (!Page.IsPostBack)
            {
                LoadContent();
            }
        }

        #region 加载内容
        private void LoadContent()
        {
            //判断是否登录
            Users uinfo = UserBase.GetCurrentUser();
            if (uinfo == null)
            {
                Response.Redirect("LoginSmall.aspx?returnurl=SendMessage.aspx&height=315;width=510");
                return;
            }

            Users touserinfo = new Users();
            UsersHelper uhelper = new UsersHelper();
            touserinfo = uhelper.GetUsers(touserid);
            litNickName.Text = touserinfo.NickName;
        }
        #endregion

    }
}